package com.ruoyi.common.core.response;

/**
 * 操作失败Controller返回结果
 *
 * @param <T>
 */
public class FailedResponse<T> extends ResponseResult implements Response {
    public FailedResponse() {
        this.code = ResponseEnum.FAIL_CODE.getCode();
        this.msg = ResponseEnum.FAIL_CODE.getMsg();
    }

    public FailedResponse(String status, String message) {
        this.code = status;
        this.msg = message;
    }

    public FailedResponse(String message) {
        this.code = ResponseEnum.FAIL_CODE.getCode();
        this.msg = message;
    }


    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

}
